<h2>View cargo <?php echo $model->id; ?></h2>

<div class="actionBar">
[<?php echo CHtml::link('cargo List',array('list')); ?>]
[<?php echo CHtml::link('New cargo',array('create')); ?>]
[<?php echo CHtml::link('Update cargo',array('update','id'=>$model->id)); ?>]
[<?php echo CHtml::linkButton('Delete cargo',array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure?')); ?>
]
[<?php echo CHtml::link('Manage cargo',array('admin')); ?>]
</div>

<?php
       $tab['internal_ref'] = $this->renderPartial('_display',array('model'=>$model),true);
       $tab['description'] = $this->renderPartial('description/_display',array('models'=>$model->details()),true);
       /*
$tab['subcert'] = $this->renderPartial('subcert/_display', array('model'=>$models['subcert']),true);
$tab['import'] = $this->renderPartial('/import/_formtab', array('model'=>$models['import']),true);
*/
$this->widget('zii.widgets.jui.CJuiTabs', array(
    'tabs'=>array(
        'Delivert No.'=>$tab['internal_ref'],
        'Cargo Descriptions'=>$tab['description'],
        //'Permit'=>$tab['subcert'],
        //'Import'=>$tab['import'],
        // panel 3 contains the content rendered by a partial view

    ),
    // additional javascript options for the tabs plugin
    ));

        ?>
